// components/classic/nav/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    previous:{
      type:Boolean
    },
    next:{
      type:Boolean
    },
    navContent:{
      type:String
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    disLeftSrc:"/components/classic/nav/img/triangle.dis@left.png",
    disRightSrc:"/components/classic/nav/img/triangle.dis@right.png",
    rightSrc:"/components/classic/nav/img/triangle@right.png",
    leftSrc:'/components/classic/nav/img/triangle@left.png'
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onPrevious:function(){
      if (!this.properties.previous){
        this.triggerEvent('onPrevious',{},{})
      }
      console.log("吖吖")
    },
    onNext: function () {
      if (!this.properties.next) {
        this.triggerEvent('onNext', {}, {})
      }
    }
  }
})
